/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lk;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Scanner;
import java.lang.Math;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Random;
/**
 *
 * @author apple
 */
public class LK {

    static public LinKernighan LinK;
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws FileNotFoundException, IOException {
        // TODO code application logic here

        LinK = new LinKernighan();
   
        Utils.start();
        //Utils.readData();
        //Utils.writeData();
        for (int i = 0; i < LinKernighan.arPedido.size(); i++){
            LinK.pedido= LinKernighan.arPedido.get(i);
            Ruta rutaPaquete;
            rutaPaquete = LinK.LK(LinKernighan.arPedido.get(i).origen, LinKernighan.arPedido.get(i).destino, LinKernighan.arPedido.get(i).fechaCreacion);
            System.out.println("***************************************LK********************************************** ");
            Utils.imprimirResultado(rutaPaquete, LinKernighan.arPedido.get(i));
        }

    }
}
